<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="menu">
            <volist name="_topMenu" id="m1">
                <li class="layui-nav-item">
                    <a href="javascript:;">{$m1.title}</a>
                    <dl class="layui-nav-child">
                        <volist name="_menuList" id="m2">
                            <if condition="$m2['pid'] eq $m1['id']">
                                <if condition="$m2['type'] eq 2">
                                    <dd><a href="{$m2.url}" target="_blank">{$m2.title}</a></dd>
                                    <else/>
                                    <dd><a href="/app{$m2.url}" menu="{$m2.id}" target="mainFrame">{$m2.title}</a></dd>
                                </if>
                            </if>
                        </volist>
                    </dl>
                </li>
            </volist>
            <volist name="_menuList" id="m1">
                <if condition="$m1['pid'] eq 0 AND $m1['type'] neq 3">
                    <if condition="$m1['type'] eq 2">
                        <li class="layui-nav-item"><a href="{$m1.url}" target="_blank">{$m1.title}</a></li>
                        <else/>
                        <li class="layui-nav-item"><a href="/app{$m1.url}" menu="{$m1.id}" target="mainFrame">{$m1.title}</a></li>
                    </if>
                </if>
            </volist>
        </ul>
    </div>
</div>